package org.dromara.hm.domain.bo;

import org.dromara.hm.domain.HmSupplementaryPickupRecord;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 补充提货记录业务对象 hm_supplementary_pickup_record
 *
 * @author Hzy
 * @date 2025-07-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HmSupplementaryPickupRecord.class, reverseConvertGenerate = false)
public class HmSupplementaryPickupRecordBo extends BaseEntity {

    /**
     * 补充提货记录ID
     */
    @NotNull(message = "补充提货记录ID不能为空", groups = { EditGroup.class })
    private Long supplementaryPickupId;

    /**
     * 原始销售订单ID
     */
    @NotNull(message = "原始销售订单ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long originalSaleId;

    /**
     * 原始订单中未提货的产品ID
     */
    @NotNull(message = "原始订单中未提货的产品ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long originalProductId;

    /**
     * 原始订单中未提货的产品名称 (冗余)
     */
    private String originalProductName;

    /**
     * 原始订单中未提货时剩余的数量
     */
    @NotNull(message = "原始订单中未提货时剩余的数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal originalUnfulfilledQuantity;

    /**
     * 实际补充提货的产品ID
     */
    @NotNull(message = "实际补充提货的产品ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long supplementaryProductId;

    /**
     * 实际补充提货的产品名称 (冗余)
     */
    private String supplementaryProductName;

    /**
     * 实际补充提货的数量
     */
    @NotNull(message = "实际补充提货的数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal supplementaryQuantity;

    /**
     * 补充提货时间
     */
    @NotNull(message = "补充提货时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date pickupTime;

    /**
     * 提货店铺ID
     */
    private Long pickupDeptId;

    /**
     * 提货店铺名称 (冗余)
     */
    private String pickupDeptName;

    /**
     * 操作人ID
     */
    private Long operatorId;

    /**
     * 操作人姓名 (冗余)
     */
    private String operatorName;

    /**
     * 补充提货原因 (例如：原产品缺货，客户同意更换)
     */
    private String reason;

    /**
     * 证明材料（图片/文档路径）
     */
    private String proofFiles;

    /**
     * 状态（NORMAL正常，CANCELLED作废）
     */
    private String status;

    /**
     * 证明材料文件列表（前端展示用）
     */
    private List<String> proofFileList;


}
